package a.f;

import a.d.*;
import a.d.s;
import a.d.t;
import a.d.v;
import a.d.w;
import a.d.y;

public class ub
  implements xb
{
  public static final int a = 1;
  public static final int b = 2;
  public static final int c = 4;
  public static final int d = 8;
  public static final int e = 16;
  public static final int f = 32;
  public static final int g = 64;
  public static final int h = 128;
  public static final int i = 256;
  public static final int j = 18;
  public static final int k = 128;
  public static final int l = 63;
  public static final int m = 448;
  private static final double n = 0.0D;
  private static final double o = 1.0D;
  private static final double p = 0.5D;
  static final Integer[] q = { new Integer(1), new Integer(2), new Integer(4), new Integer(8), new Integer(16), new Integer(32), new Integer(64), new Integer(128), new Integer(256) };
  private static final Object r = new Integer(128);
  private static final Object s = new Integer(64);
  private static final Object t = new Integer(16);
  private static final Object u = new Integer(8);
  private int v = 63;
  private kd w;
  private double x = 2.0D;
  public static boolean y;
  
  public ub()
  {
    this(63);
  }
  
  public ub(int paramInt)
  {
    this.v = paramInt;
    if (!bool) {
      if (paramInt != 128)
      {
        if (!bool) {
          if (paramInt != 448) {
            break label70;
          }
        }
      }
      else
      {
        if (bool) {
          break label79;
        }
        this.w = new kd((byte)0);
      }
    }
    if (o.dg != 0) {
      label70:
      label79:
      this.w = new kd((byte)1);
    }
  }
  
  public int b()
  {
    return this.v;
  }
  
  public double c()
  {
    return this.x;
  }
  
  public void a(double paramDouble)
  {
    this.x = paramDouble;
  }
  
  public Object a()
  {
    boolean bool = o.eg;
    if (!bool) {
      if ((this.v & 0x80) != 0) {
        return r;
      }
    }
    if (!bool) {
      if ((this.v & 0x40) != 0) {
        return s;
      }
    }
    if (!bool)
    {
      if ((this.v & 0x10) != 0) {
        return t;
      }
      if (bool) {}
    }
    else if ((this.v & 0x8) != 0)
    {
      return u;
    }
    return r;
  }
  
  public Object a(a.d.o paramo, zb paramzb, zc paramzc1, zc paramzc2)
  {
    if (wc.a(paramo)) {
      throw new IllegalArgumentException("Invalid label bounds: " + paramo);
    }
    mc localmc = new mc();
    localmc.a(paramo);
    a.c.z localz = a(localmc, paramzb, paramzc1, paramzc2);
    if (!o.eg) {
      if (localz.isEmpty()) {
        return a();
      }
    }
    return ob.a(localz, paramo.l()).c();
  }
  
  public static Object a(int paramInt)
  {
    switch (paramInt)
    {
    case 1: 
    case 2: 
    case 4: 
    case 8: 
    case 16: 
    case 32: 
    case 64: 
    case 128: 
    case 256: 
      return new Integer(paramInt);
    }
    throw new IllegalArgumentException("Invalid position: " + paramInt);
  }
  
  public boolean a(Object paramObject)
  {
    boolean bool = o.eg;
    if (!bool) {
      if ((paramObject instanceof Integer))
      {
        int i1 = ((Integer)paramObject).intValue();
        if (!bool) {}
        return (this.v & i1) != 0;
      }
    }
    return false;
  }
  
  public a.d.o a(s params, zb paramzb, zc paramzc1, zc paramzc2, Object paramObject)
  {
    if (!o.eg) {}
    int i1 = paramObject != null ? ((Number)paramObject).intValue() : ((Number)a()).intValue();
    return a(params, paramzb, paramzc1, paramzc2, i1);
  }
  
  public a.c.z a(wb paramwb, zb paramzb, zc paramzc1, zc paramzc2)
  {
    boolean bool2 = o.eg;
    int i3 = o.dg;
    a.c.z localz = new a.c.z();
    s locals = paramwb.d().f();
    int i1 = 0;
    label138:
    do
    {
      if (i1 >= q.length) {
        break;
      }
      int i2 = q[i1].intValue();
      if (!bool2)
      {
        if ((this.v & i2) != 0)
        {
          boolean bool1 = false;
          if (!bool2) {
            if (i2 == 128)
            {
              bool1 = true;
              if ((!bool2) && (i3 == 0)) {
                break label138;
              }
            }
          }
          if (!bool2) {
            if (i2 == 64) {
              bool1 = true;
            }
          }
          if (((bool2) || (i3 != 0)) && ((bool2) || (i2 == 256))) {
            bool1 = true;
          }
          a.d.o localo = a(locals, paramzb, paramzc1, paramzc2, i2);
          localz.add(new gc(localo, q[i1], paramwb, bool1));
        }
        i1++;
      }
    } while (i3 == 0);
    return localz;
  }
  
  protected a.d.o a(s params, zb paramzb, zc paramzc1, zc paramzc2, int paramInt)
  {
    boolean bool = o.eg;
    int i5 = o.dg;
    y localy = wc.a(paramzb, paramzc1, paramzc2, 0.0D);
    int i1 = 0;
    int i2 = 0;
    double d1 = 0.0D;
    int i3 = -1;
    v localv = localy.l();
    if (localv.e()) {
      i3++;
    }
    while (bool)
    {
      n localn1 = localv.a();
      d2 = localn1.h();
      if (i5 != 0) {
        break label107;
      }
      if (d2 > d1)
      {
        d1 = d2;
        i2 = i3;
      }
      localv.f();
      if (i5 == 0) {
        break;
      }
    }
    label107:
    int i4 = 0;
    byte b1 = 3;
    double d2 = 0.0D;
    if (!bool) {}
    switch (paramInt)
    {
    case 1: 
      b1 = 2;
      i4 = 0;
      d2 = 0.0D;
      if (!bool) {
        if (i5 == 0) {
          break label377;
        }
      }
    case 2: 
      b1 = 2;
      i4 = i2;
      d2 = 0.5D;
      if (!bool) {
        if (i5 == 0) {
          break label377;
        }
      }
    case 4: 
      b1 = 2;
      i4 = i3;
      d2 = 1.0D;
      if (!bool) {
        if (i5 == 0) {
          break label377;
        }
      }
    case 64: 
      b1 = 0;
      i4 = 0;
      d2 = 0.0D;
      if (!bool) {
        if (i5 == 0) {
          break label377;
        }
      }
    case 128: 
      b1 = 0;
      i4 = i2;
      d2 = 0.5D;
      if (!bool) {
        if (i5 == 0) {
          break label377;
        }
      }
    case 256: 
      b1 = 0;
      i4 = i3;
      d2 = 1.0D;
      if (!bool) {
        if (i5 == 0) {
          break label377;
        }
      }
    case 8: 
      b1 = 1;
      i4 = 0;
      d2 = 0.0D;
      if (!bool) {
        if (i5 == 0) {
          break label377;
        }
      }
    case 16: 
      b1 = 1;
      i4 = i2;
      d2 = 0.5D;
      if (!bool) {
        if (i5 == 0) {
          break label377;
        }
      }
    case 32: 
      b1 = 1;
      i4 = i3;
      d2 = 1.0D;
    }
    label377:
    n localn2 = localy.a(i4);
    a.d.o localo = new a.d.o(new w(0.0D, 0.0D), params);
    t localt = localo.a();
    if (!bool) {
      if (localn2 == null)
      {
        localo.g(paramzc1.a() + localt.a * 0.5D, paramzc1.b() - localt.b * 0.5D);
        return localo;
      }
    }
    w localw1 = localn2.d();
    w localw2 = localn2.e();
    double d3 = localw2.a() - localw1.a();
    double d4 = localw2.b() - localw1.b();
    if ((bool) || (d3 == 0.0D)) {
      if (!bool)
      {
        if (d4 == 0.0D)
        {
          d3 = paramzc1.a() + paramzc1.c() * 0.5D + paramzb.c().a - (paramzc2.a() + paramzc2.c() * 0.5D + paramzb.d().a);
          d4 = paramzc1.b() + paramzc1.d() * 0.5D + paramzb.c().b - (paramzc2.b() + paramzc2.d() * 0.5D + paramzb.d().b);
        }
      }
      else if ((bool) || ((d3 == 0.0D) && ((bool) || (d4 == 0.0D)))) {
        d3 = 1.0E-006D;
      }
    }
    a.d.z localz = this.w.a(d3, d4, localt.b(), localt.c(), b1);
    localz.c();
    localz.b(this.x);
    kd.a_ locala_ = new kd.a_(i4, d2, localz, b1, d2);
    return this.w.a(params, paramzb, paramzc1, paramzc2, locala_);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.ub

 * JD-Core Version:    0.7.0.1

 */